---
title: "SD-08 | UC-08: Handle Sensor Error"
---
sequenceDiagram
    actor SEN_HW as Sensor (HW)
    participant SEN as :Sensor
    participant CTR as :Controller
    participant MU as :MovementUnit

    SEN_HW->>SEN: detect()
    activate SEN
    SEN->>CTR: reportSensorError(sensorId)
    activate CTR

    CTR->>CTR: validateSensorData(sensorId)

    alt Transient error
        CTR->>CTR: retainLastValidState()
    else Persistent error
        CTR->>MU: stop()
        activate MU
        deactivate MU
    end

    deactivate CTR
    deactivate SEN
